<?php if (!defined('THINK_PATH')) exit();?><meta charset="UTF-8">
<table  align="center">

<h3 align="center">回复评论</h3>
<table align="center">
<th>
	<h2><font color="red"><?php echo ($arr["content"]); ?></font></h2>
</th>
</table>

<div >
<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><h3>回复：<?php echo ($v["ping"]); ?></h3><?php endforeach; endif; else: echo "" ;endif; ?>	
</div>

<div align="center"> <textarea id="content" cols="20px" rows="2px"></textarea>
<input type="button" onclick="ti(this)" title="<?php echo ($arr["id"]); ?>" value="回复">
</div>

<script type="text/javascript">
	function ti(obj){
		var id=obj.title;
		var content=document.getElementById('content').value;
		var ajax=new XMLHttpRequest();
		ajax.open('get','/blog/index.php/Blog/Index/h?ping='+content+"&p_id="+id);
		ajax.send(null);
		ajax.onreadystatechange=function(){
		if(ajax.readyState==4&&ajax.status==200){
			location.reload();
		}
	}
}
</script>